util-linux.git
20 months agoMerge util-linux (2.40.1-8.1) import into refs/heads/workingbranch
Helmut Grohne [Wed, 5 Jun 2024 15:23:00 +0000 (17:23 +0200)]
Merge util-linux (2.40.1-8.1) import into refs/heads/workingbranch

20 months agolibmount: Fix atime remount for new API
Karel Zak [Tue, 14 May 2024 09:58:20 +0000 (11:58 +0200)]
libmount: Fix atime remount for new API

All atime settings are mutually exclusive, and the attr_set mask for
the mount_setattr() syscall cannot contain multiple MOUNT_ATTR_ atime
related options.

Unfortunately, during a remount, the list of options is composed of
both old and new options. In this case, libmount sets more atime
options to the mask. The correct behavior is to use the last atime
related option from the list.

Fixes: https://github.com/util-linux/util-linux/issues/3032
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libmount-Fix-atime-remount-for-new-API.patch

20 months agolibsmartcols: fix reduction stages use
Karel Zak [Wed, 15 May 2024 13:45:19 +0000 (15:45 +0200)]
libsmartcols: fix reduction stages use

There is no proper check for the number of reduction stages, so in
some cases, the code can loop indefinitely.

The patch also fixes 'rc' variable shadowing.

Fixes: https://github.com/util-linux/util-linux/issues/3046
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libsmartcols-fix-reduction-stages-use.patch

20 months agolibuuid: clear uuidd cache on fork()
Thomas Weißschuh [Tue, 7 May 2024 11:44:31 +0000 (13:44 +0200)]
libuuid: clear uuidd cache on fork()

After fork() the memory of the calling thread is preserved into the new
process. This also includes TLS.
Make sure to reset the cache after a fork to avoid reuse of cached
values.

Only the TLS of the thread calling fork() is relevant as that is the
only thread that gets forked.
New threads will received newly initialized TLS.

Fixes https://github.com/util-linux/util-linux/issues/3009
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libuuid-clear-uuidd-cache-on-fork.patch

20 months agolibuuid: split uuidd cache into dedicated struct
Thomas Weißschuh [Tue, 7 May 2024 11:33:40 +0000 (13:33 +0200)]
libuuid: split uuidd cache into dedicated struct

To clear the struct we need to be able to refer to it by name.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libuuid-split-uuidd-cache-into-dedicated-struct.patch

20 months agolibuuid: drop check for HAVE_TLS
Thomas Weißschuh [Tue, 7 May 2024 11:28:41 +0000 (13:28 +0200)]
libuuid: drop check for HAVE_TLS

In the function get_clock() TLS is used unconditionally anyways.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libuuid-drop-check-for-HAVE_TLS.patch

20 months agofsck: warn if fsck.<type> not found and device is specified
Karel Zak [Thu, 8 Feb 2024 11:42:51 +0000 (12:42 +0100)]
fsck: warn if fsck.<type> not found and device is specified

The fsck(8) command prints an error for certain 'required'
filesystems, such as extN, if the corresponding fsck.<type> helper is
not found. However, for other filesystems, it silently ignores the
device. While this behavior is acceptable for the -A option, if a user
explicitly specifies the device on the command line, it is probably a
good idea to be more verbose and issue a warning that the device will
be ignored. The warning is enabled only for interactive mode (only one
device specified or -s).

Note that some filesystems do not have an fsck utility, so caution is
needed when issuing such warnings to prevent the generation of a large
number of unwanted entries in system logs, etc."

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Closes: #1062208
Gbp-Pq: Topic upstream
Gbp-Pq: Name fsck-warn-if-fsck.-type-not-found-and-device-is-specified.patch

20 months agolibmount/utils: add pidfs to pseudo fs list
Mike Yuan [Fri, 10 May 2024 17:11:28 +0000 (01:11 +0800)]
libmount/utils: add pidfs to pseudo fs list

(cherry picked from commit 62cf52f81d5baaba2cfe6dfe00aa4975ebd55d92)

Gbp-Pq: Topic upstream
Gbp-Pq: Name libmount-utils-add-pidfs-to-pseudo-fs-list.patch

20 months agoFix ul_path_read_buffer()
Daan De Meyer [Thu, 9 May 2024 10:32:31 +0000 (12:32 +0200)]
Fix ul_path_read_buffer()

The current implementation cuts off the last character of the buffer
if there is no trailing newline.

(cherry picked from commit 6273c12257973cbd3c59a710049ee8a8027bbbb1)

Gbp-Pq: Topic upstream
Gbp-Pq: Name Fix-ul_path_read_buffer.patch

20 months agoaudit-arch.h: add defines for m68k, sh
Chris Hofstaedtler [Tue, 9 Apr 2024 08:30:32 +0000 (10:30 +0200)]
audit-arch.h: add defines for m68k, sh

John Paul Adrian Glaubitz points out that libseccomp needs to release 2.6.0,
too.

Upstream commit 5ebf0edb0a0531cba801c7791543c610725bf944.

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
Gbp-Pq: Topic upstream
Gbp-Pq: Name audit-arch.h-add-defines-for-m68k-sh.patch

20 months agotests: mark fadvise/drop as known failing on buildds
Chris Hofstaedtler [Tue, 2 Apr 2024 19:52:47 +0000 (21:52 +0200)]
tests: mark fadvise/drop as known failing on buildds

buildds build on a tmpfs, but this is not visible inside the build environment.

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-mark-fadvise-drop-as-known-failing-on-buildds.patch

20 months agotests: mark lsfd mkfds-socketpair as failing in sbuild
Chris Hofstaedtler [Thu, 29 Feb 2024 22:22:41 +0000 (23:22 +0100)]
tests: mark lsfd mkfds-socketpair as failing in sbuild

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-mark-lsfd-tests-failing-in-sbuild.patch

20 months agoUse sensible-pager
Chris Hofstaedtler [Thu, 14 Jul 2022 09:54:01 +0000 (09:54 +0000)]
Use sensible-pager

Closes: #1014368
Gbp-Pq: Topic debian
Gbp-Pq: Name sensible-pager.patch

20 months agoInstall lsfd into /usr/bin
Chris Hofstaedtler [Thu, 14 Apr 2022 11:47:20 +0000 (11:47 +0000)]
Install lsfd into /usr/bin

Gbp-Pq: Topic debian
Gbp-Pq: Name lsfd-usrbin.patch

20 months agohardlink tests: set known failed
Chris Hofstaedtler [Tue, 12 Apr 2022 20:35:57 +0000 (20:35 +0000)]
hardlink tests: set known failed

sha256 cannot be initialized on some archs / buildds.

Gbp-Pq: Topic debian
Gbp-Pq: Name hardlink-tests-known-failed.patch

20 months agoverbose-tests
Andreas Henriksson [Wed, 30 Jul 2014 12:28:17 +0000 (14:28 +0200)]
verbose-tests

Enable verbose tests and print content of failing tests output file.

Gbp-Pq: Topic debian
Gbp-Pq: Name verbose-tests.patch

20 months agoutil-linux: getopt(1) should point to where examples are on a Debian system
Matthew Vernon [Tue, 6 Nov 2018 11:49:21 +0000 (11:49 +0000)]
util-linux: getopt(1) should point to where examples are on a Debian system

Debian BTS #913049

Gbp-Pq: Topic debian
Gbp-Pq: Name man-getopt-examples.patch

20 months agoutil-linux (2.40.1-8.1) unstable; urgency=medium
Helmut Grohne [Wed, 5 Jun 2024 15:23:00 +0000 (17:23 +0200)]
util-linux (2.40.1-8.1) unstable; urgency=medium

  * Non-maintainer upload acked by Chris Hofstaedtler.

  [ Chris Hofstaedtler ]
  * Move /bin/more into /usr/bin. Closes: MR!28

[dgit import unpatched util-linux 2.40.1-8.1]

20 months agoImport util-linux_2.40.1-8.1.debian.tar.xz
Helmut Grohne [Wed, 5 Jun 2024 15:23:00 +0000 (17:23 +0200)]
Import util-linux_2.40.1-8.1.debian.tar.xz

[dgit import tarball util-linux 2.40.1-8.1 util-linux_2.40.1-8.1.debian.tar.xz]

20 months agoMerge util-linux (2.40.1-8) import into refs/heads/workingbranch
Chris Hofstaedtler [Mon, 3 Jun 2024 15:03:37 +0000 (17:03 +0200)]
Merge util-linux (2.40.1-8) import into refs/heads/workingbranch

20 months agolibmount: Fix atime remount for new API
Karel Zak [Tue, 14 May 2024 09:58:20 +0000 (11:58 +0200)]
libmount: Fix atime remount for new API

All atime settings are mutually exclusive, and the attr_set mask for
the mount_setattr() syscall cannot contain multiple MOUNT_ATTR_ atime
related options.

Unfortunately, during a remount, the list of options is composed of
both old and new options. In this case, libmount sets more atime
options to the mask. The correct behavior is to use the last atime
related option from the list.

Fixes: https://github.com/util-linux/util-linux/issues/3032
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libmount-Fix-atime-remount-for-new-API.patch

20 months agolibsmartcols: fix reduction stages use
Karel Zak [Wed, 15 May 2024 13:45:19 +0000 (15:45 +0200)]
libsmartcols: fix reduction stages use

There is no proper check for the number of reduction stages, so in
some cases, the code can loop indefinitely.

The patch also fixes 'rc' variable shadowing.

Fixes: https://github.com/util-linux/util-linux/issues/3046
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libsmartcols-fix-reduction-stages-use.patch

20 months agolibuuid: clear uuidd cache on fork()
Thomas Weißschuh [Tue, 7 May 2024 11:44:31 +0000 (13:44 +0200)]
libuuid: clear uuidd cache on fork()

After fork() the memory of the calling thread is preserved into the new
process. This also includes TLS.
Make sure to reset the cache after a fork to avoid reuse of cached
values.

Only the TLS of the thread calling fork() is relevant as that is the
only thread that gets forked.
New threads will received newly initialized TLS.

Fixes https://github.com/util-linux/util-linux/issues/3009
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libuuid-clear-uuidd-cache-on-fork.patch

20 months agolibuuid: split uuidd cache into dedicated struct
Thomas Weißschuh [Tue, 7 May 2024 11:33:40 +0000 (13:33 +0200)]
libuuid: split uuidd cache into dedicated struct

To clear the struct we need to be able to refer to it by name.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libuuid-split-uuidd-cache-into-dedicated-struct.patch

20 months agolibuuid: drop check for HAVE_TLS
Thomas Weißschuh [Tue, 7 May 2024 11:28:41 +0000 (13:28 +0200)]
libuuid: drop check for HAVE_TLS

In the function get_clock() TLS is used unconditionally anyways.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libuuid-drop-check-for-HAVE_TLS.patch

20 months agofsck: warn if fsck.<type> not found and device is specified
Karel Zak [Thu, 8 Feb 2024 11:42:51 +0000 (12:42 +0100)]
fsck: warn if fsck.<type> not found and device is specified

The fsck(8) command prints an error for certain 'required'
filesystems, such as extN, if the corresponding fsck.<type> helper is
not found. However, for other filesystems, it silently ignores the
device. While this behavior is acceptable for the -A option, if a user
explicitly specifies the device on the command line, it is probably a
good idea to be more verbose and issue a warning that the device will
be ignored. The warning is enabled only for interactive mode (only one
device specified or -s).

Note that some filesystems do not have an fsck utility, so caution is
needed when issuing such warnings to prevent the generation of a large
number of unwanted entries in system logs, etc."

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Closes: #1062208
Gbp-Pq: Topic upstream
Gbp-Pq: Name fsck-warn-if-fsck.-type-not-found-and-device-is-specified.patch

20 months agolibmount/utils: add pidfs to pseudo fs list
Mike Yuan [Fri, 10 May 2024 17:11:28 +0000 (01:11 +0800)]
libmount/utils: add pidfs to pseudo fs list

(cherry picked from commit 62cf52f81d5baaba2cfe6dfe00aa4975ebd55d92)

Gbp-Pq: Topic upstream
Gbp-Pq: Name libmount-utils-add-pidfs-to-pseudo-fs-list.patch

20 months agoFix ul_path_read_buffer()
Daan De Meyer [Thu, 9 May 2024 10:32:31 +0000 (12:32 +0200)]
Fix ul_path_read_buffer()

The current implementation cuts off the last character of the buffer
if there is no trailing newline.

(cherry picked from commit 6273c12257973cbd3c59a710049ee8a8027bbbb1)

Gbp-Pq: Topic upstream
Gbp-Pq: Name Fix-ul_path_read_buffer.patch

20 months agoaudit-arch.h: add defines for m68k, sh
Chris Hofstaedtler [Tue, 9 Apr 2024 08:30:32 +0000 (10:30 +0200)]
audit-arch.h: add defines for m68k, sh

John Paul Adrian Glaubitz points out that libseccomp needs to release 2.6.0,
too.

Upstream commit 5ebf0edb0a0531cba801c7791543c610725bf944.

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
Gbp-Pq: Topic upstream
Gbp-Pq: Name audit-arch.h-add-defines-for-m68k-sh.patch

20 months agotests: mark fadvise/drop as known failing on buildds
Chris Hofstaedtler [Tue, 2 Apr 2024 19:52:47 +0000 (21:52 +0200)]
tests: mark fadvise/drop as known failing on buildds

buildds build on a tmpfs, but this is not visible inside the build environment.

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-mark-fadvise-drop-as-known-failing-on-buildds.patch

20 months agotests: mark lsfd mkfds-socketpair as failing in sbuild
Chris Hofstaedtler [Thu, 29 Feb 2024 22:22:41 +0000 (23:22 +0100)]
tests: mark lsfd mkfds-socketpair as failing in sbuild

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-mark-lsfd-tests-failing-in-sbuild.patch

20 months agoUse sensible-pager
Chris Hofstaedtler [Thu, 14 Jul 2022 09:54:01 +0000 (09:54 +0000)]
Use sensible-pager

Closes: #1014368
Gbp-Pq: Topic debian
Gbp-Pq: Name sensible-pager.patch

20 months agoInstall lsfd into /usr/bin
Chris Hofstaedtler [Thu, 14 Apr 2022 11:47:20 +0000 (11:47 +0000)]
Install lsfd into /usr/bin

Gbp-Pq: Topic debian
Gbp-Pq: Name lsfd-usrbin.patch

20 months agohardlink tests: set known failed
Chris Hofstaedtler [Tue, 12 Apr 2022 20:35:57 +0000 (20:35 +0000)]
hardlink tests: set known failed

sha256 cannot be initialized on some archs / buildds.

Gbp-Pq: Topic debian
Gbp-Pq: Name hardlink-tests-known-failed.patch

20 months agoverbose-tests
Andreas Henriksson [Wed, 30 Jul 2014 12:28:17 +0000 (14:28 +0200)]
verbose-tests

Enable verbose tests and print content of failing tests output file.

Gbp-Pq: Topic debian
Gbp-Pq: Name verbose-tests.patch

20 months agoutil-linux: getopt(1) should point to where examples are on a Debian system
Matthew Vernon [Tue, 6 Nov 2018 11:49:21 +0000 (11:49 +0000)]
util-linux: getopt(1) should point to where examples are on a Debian system

Debian BTS #913049

Gbp-Pq: Topic debian
Gbp-Pq: Name man-getopt-examples.patch

20 months agoutil-linux (2.40.1-8) unstable; urgency=medium
Chris Hofstaedtler [Mon, 3 Jun 2024 15:03:37 +0000 (17:03 +0200)]
util-linux (2.40.1-8) unstable; urgency=medium

  * libpam-lastlog2: fix incorrect removal of PAM config

[dgit import unpatched util-linux 2.40.1-8]

20 months agoImport util-linux_2.40.1-8.debian.tar.xz
Chris Hofstaedtler [Mon, 3 Jun 2024 15:03:37 +0000 (17:03 +0200)]
Import util-linux_2.40.1-8.debian.tar.xz

[dgit import tarball util-linux 2.40.1-8 util-linux_2.40.1-8.debian.tar.xz]

20 months agoMerge util-linux (2.40.1-4) import into refs/heads/workingbranch
Chris Hofstaedtler [Thu, 30 May 2024 17:14:16 +0000 (19:14 +0200)]
Merge util-linux (2.40.1-4) import into refs/heads/workingbranch

20 months agolibmount: Fix atime remount for new API
Karel Zak [Tue, 14 May 2024 09:58:20 +0000 (11:58 +0200)]
libmount: Fix atime remount for new API

All atime settings are mutually exclusive, and the attr_set mask for
the mount_setattr() syscall cannot contain multiple MOUNT_ATTR_ atime
related options.

Unfortunately, during a remount, the list of options is composed of
both old and new options. In this case, libmount sets more atime
options to the mask. The correct behavior is to use the last atime
related option from the list.

Fixes: https://github.com/util-linux/util-linux/issues/3032
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libmount-Fix-atime-remount-for-new-API.patch

20 months agolibsmartcols: fix reduction stages use
Karel Zak [Wed, 15 May 2024 13:45:19 +0000 (15:45 +0200)]
libsmartcols: fix reduction stages use

There is no proper check for the number of reduction stages, so in
some cases, the code can loop indefinitely.

The patch also fixes 'rc' variable shadowing.

Fixes: https://github.com/util-linux/util-linux/issues/3046
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libsmartcols-fix-reduction-stages-use.patch

20 months agolibuuid: clear uuidd cache on fork()
Thomas Weißschuh [Tue, 7 May 2024 11:44:31 +0000 (13:44 +0200)]
libuuid: clear uuidd cache on fork()

After fork() the memory of the calling thread is preserved into the new
process. This also includes TLS.
Make sure to reset the cache after a fork to avoid reuse of cached
values.

Only the TLS of the thread calling fork() is relevant as that is the
only thread that gets forked.
New threads will received newly initialized TLS.

Fixes https://github.com/util-linux/util-linux/issues/3009
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libuuid-clear-uuidd-cache-on-fork.patch

20 months agolibuuid: split uuidd cache into dedicated struct
Thomas Weißschuh [Tue, 7 May 2024 11:33:40 +0000 (13:33 +0200)]
libuuid: split uuidd cache into dedicated struct

To clear the struct we need to be able to refer to it by name.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libuuid-split-uuidd-cache-into-dedicated-struct.patch

20 months agolibuuid: drop check for HAVE_TLS
Thomas Weißschuh [Tue, 7 May 2024 11:28:41 +0000 (13:28 +0200)]
libuuid: drop check for HAVE_TLS

In the function get_clock() TLS is used unconditionally anyways.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libuuid-drop-check-for-HAVE_TLS.patch

20 months agofsck: warn if fsck.<type> not found and device is specified
Karel Zak [Thu, 8 Feb 2024 11:42:51 +0000 (12:42 +0100)]
fsck: warn if fsck.<type> not found and device is specified

The fsck(8) command prints an error for certain 'required'
filesystems, such as extN, if the corresponding fsck.<type> helper is
not found. However, for other filesystems, it silently ignores the
device. While this behavior is acceptable for the -A option, if a user
explicitly specifies the device on the command line, it is probably a
good idea to be more verbose and issue a warning that the device will
be ignored. The warning is enabled only for interactive mode (only one
device specified or -s).

Note that some filesystems do not have an fsck utility, so caution is
needed when issuing such warnings to prevent the generation of a large
number of unwanted entries in system logs, etc."

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Closes: #1062208
Gbp-Pq: Topic upstream
Gbp-Pq: Name fsck-warn-if-fsck.-type-not-found-and-device-is-specified.patch

20 months agolibmount/utils: add pidfs to pseudo fs list
Mike Yuan [Fri, 10 May 2024 17:11:28 +0000 (01:11 +0800)]
libmount/utils: add pidfs to pseudo fs list

(cherry picked from commit 62cf52f81d5baaba2cfe6dfe00aa4975ebd55d92)

Gbp-Pq: Topic upstream
Gbp-Pq: Name libmount-utils-add-pidfs-to-pseudo-fs-list.patch

20 months agoFix ul_path_read_buffer()
Daan De Meyer [Thu, 9 May 2024 10:32:31 +0000 (12:32 +0200)]
Fix ul_path_read_buffer()

The current implementation cuts off the last character of the buffer
if there is no trailing newline.

(cherry picked from commit 6273c12257973cbd3c59a710049ee8a8027bbbb1)

Gbp-Pq: Topic upstream
Gbp-Pq: Name Fix-ul_path_read_buffer.patch

20 months agoaudit-arch.h: add defines for m68k, sh
Chris Hofstaedtler [Tue, 9 Apr 2024 08:30:32 +0000 (10:30 +0200)]
audit-arch.h: add defines for m68k, sh

John Paul Adrian Glaubitz points out that libseccomp needs to release 2.6.0,
too.

Upstream commit 5ebf0edb0a0531cba801c7791543c610725bf944.

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
Gbp-Pq: Topic upstream
Gbp-Pq: Name audit-arch.h-add-defines-for-m68k-sh.patch

20 months agotests: mark fadvise/drop as known failing on buildds
Chris Hofstaedtler [Tue, 2 Apr 2024 19:52:47 +0000 (21:52 +0200)]
tests: mark fadvise/drop as known failing on buildds

buildds build on a tmpfs, but this is not visible inside the build environment.

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-mark-fadvise-drop-as-known-failing-on-buildds.patch

20 months agotests: mark lsfd mkfds-socketpair as failing in sbuild
Chris Hofstaedtler [Thu, 29 Feb 2024 22:22:41 +0000 (23:22 +0100)]
tests: mark lsfd mkfds-socketpair as failing in sbuild

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-mark-lsfd-tests-failing-in-sbuild.patch

20 months agoUse sensible-pager
Chris Hofstaedtler [Thu, 14 Jul 2022 09:54:01 +0000 (09:54 +0000)]
Use sensible-pager

Closes: #1014368
Gbp-Pq: Topic debian
Gbp-Pq: Name sensible-pager.patch

20 months agoInstall lsfd into /usr/bin
Chris Hofstaedtler [Thu, 14 Apr 2022 11:47:20 +0000 (11:47 +0000)]
Install lsfd into /usr/bin

Gbp-Pq: Topic debian
Gbp-Pq: Name lsfd-usrbin.patch

20 months agohardlink tests: set known failed
Chris Hofstaedtler [Tue, 12 Apr 2022 20:35:57 +0000 (20:35 +0000)]
hardlink tests: set known failed

sha256 cannot be initialized on some archs / buildds.

Gbp-Pq: Topic debian
Gbp-Pq: Name hardlink-tests-known-failed.patch

20 months agoverbose-tests
Andreas Henriksson [Wed, 30 Jul 2014 12:28:17 +0000 (14:28 +0200)]
verbose-tests

Enable verbose tests and print content of failing tests output file.

Gbp-Pq: Topic debian
Gbp-Pq: Name verbose-tests.patch

20 months agoutil-linux: getopt(1) should point to where examples are on a Debian system
Matthew Vernon [Tue, 6 Nov 2018 11:49:21 +0000 (11:49 +0000)]
util-linux: getopt(1) should point to where examples are on a Debian system

Debian BTS #913049

Gbp-Pq: Topic debian
Gbp-Pq: Name man-getopt-examples.patch

20 months agoutil-linux (2.40.1-4) unstable; urgency=medium
Chris Hofstaedtler [Thu, 30 May 2024 17:14:16 +0000 (19:14 +0200)]
util-linux (2.40.1-4) unstable; urgency=medium

  * lintian: ignore missing misc:Depends, not needed with debputy
  * d/copyright: update
  * d/control: set Section: utils for Source: section

[dgit import unpatched util-linux 2.40.1-4]

20 months agoImport util-linux_2.40.1-4.debian.tar.xz
Chris Hofstaedtler [Thu, 30 May 2024 17:14:16 +0000 (19:14 +0200)]
Import util-linux_2.40.1-4.debian.tar.xz

[dgit import tarball util-linux 2.40.1-4 util-linux_2.40.1-4.debian.tar.xz]

20 months agoMerge util-linux (2.40.1-2) import into refs/heads/workingbranch
Chris Hofstaedtler [Sun, 26 May 2024 13:52:22 +0000 (15:52 +0200)]
Merge util-linux (2.40.1-2) import into refs/heads/workingbranch

20 months agolibmount: Fix atime remount for new API
Karel Zak [Tue, 14 May 2024 09:58:20 +0000 (11:58 +0200)]
libmount: Fix atime remount for new API

All atime settings are mutually exclusive, and the attr_set mask for
the mount_setattr() syscall cannot contain multiple MOUNT_ATTR_ atime
related options.

Unfortunately, during a remount, the list of options is composed of
both old and new options. In this case, libmount sets more atime
options to the mask. The correct behavior is to use the last atime
related option from the list.

Fixes: https://github.com/util-linux/util-linux/issues/3032
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libmount-Fix-atime-remount-for-new-API.patch

20 months agolibsmartcols: fix reduction stages use
Karel Zak [Wed, 15 May 2024 13:45:19 +0000 (15:45 +0200)]
libsmartcols: fix reduction stages use

There is no proper check for the number of reduction stages, so in
some cases, the code can loop indefinitely.

The patch also fixes 'rc' variable shadowing.

Fixes: https://github.com/util-linux/util-linux/issues/3046
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libsmartcols-fix-reduction-stages-use.patch

20 months agolibuuid: clear uuidd cache on fork()
Thomas Weißschuh [Tue, 7 May 2024 11:44:31 +0000 (13:44 +0200)]
libuuid: clear uuidd cache on fork()

After fork() the memory of the calling thread is preserved into the new
process. This also includes TLS.
Make sure to reset the cache after a fork to avoid reuse of cached
values.

Only the TLS of the thread calling fork() is relevant as that is the
only thread that gets forked.
New threads will received newly initialized TLS.

Fixes https://github.com/util-linux/util-linux/issues/3009
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libuuid-clear-uuidd-cache-on-fork.patch

20 months agolibuuid: split uuidd cache into dedicated struct
Thomas Weißschuh [Tue, 7 May 2024 11:33:40 +0000 (13:33 +0200)]
libuuid: split uuidd cache into dedicated struct

To clear the struct we need to be able to refer to it by name.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libuuid-split-uuidd-cache-into-dedicated-struct.patch

20 months agolibuuid: drop check for HAVE_TLS
Thomas Weißschuh [Tue, 7 May 2024 11:28:41 +0000 (13:28 +0200)]
libuuid: drop check for HAVE_TLS

In the function get_clock() TLS is used unconditionally anyways.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name libuuid-drop-check-for-HAVE_TLS.patch

20 months agofsck: warn if fsck.<type> not found and device is specified
Karel Zak [Thu, 8 Feb 2024 11:42:51 +0000 (12:42 +0100)]
fsck: warn if fsck.<type> not found and device is specified

The fsck(8) command prints an error for certain 'required'
filesystems, such as extN, if the corresponding fsck.<type> helper is
not found. However, for other filesystems, it silently ignores the
device. While this behavior is acceptable for the -A option, if a user
explicitly specifies the device on the command line, it is probably a
good idea to be more verbose and issue a warning that the device will
be ignored. The warning is enabled only for interactive mode (only one
device specified or -s).

Note that some filesystems do not have an fsck utility, so caution is
needed when issuing such warnings to prevent the generation of a large
number of unwanted entries in system logs, etc."

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Closes: #1062208
Gbp-Pq: Topic upstream
Gbp-Pq: Name fsck-warn-if-fsck.-type-not-found-and-device-is-specified.patch

20 months agolibmount/utils: add pidfs to pseudo fs list
Mike Yuan [Fri, 10 May 2024 17:11:28 +0000 (01:11 +0800)]
libmount/utils: add pidfs to pseudo fs list

(cherry picked from commit 62cf52f81d5baaba2cfe6dfe00aa4975ebd55d92)

Gbp-Pq: Topic upstream
Gbp-Pq: Name libmount-utils-add-pidfs-to-pseudo-fs-list.patch

20 months agoFix ul_path_read_buffer()
Daan De Meyer [Thu, 9 May 2024 10:32:31 +0000 (12:32 +0200)]
Fix ul_path_read_buffer()

The current implementation cuts off the last character of the buffer
if there is no trailing newline.

(cherry picked from commit 6273c12257973cbd3c59a710049ee8a8027bbbb1)

Gbp-Pq: Topic upstream
Gbp-Pq: Name Fix-ul_path_read_buffer.patch

20 months agoaudit-arch.h: add defines for m68k, sh
Chris Hofstaedtler [Tue, 9 Apr 2024 08:30:32 +0000 (10:30 +0200)]
audit-arch.h: add defines for m68k, sh

John Paul Adrian Glaubitz points out that libseccomp needs to release 2.6.0,
too.

Upstream commit 5ebf0edb0a0531cba801c7791543c610725bf944.

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
Gbp-Pq: Topic upstream
Gbp-Pq: Name audit-arch.h-add-defines-for-m68k-sh.patch

20 months agotests: mark fadvise/drop as known failing on buildds
Chris Hofstaedtler [Tue, 2 Apr 2024 19:52:47 +0000 (21:52 +0200)]
tests: mark fadvise/drop as known failing on buildds

buildds build on a tmpfs, but this is not visible inside the build environment.

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-mark-fadvise-drop-as-known-failing-on-buildds.patch

20 months agotests: mark lsfd mkfds-socketpair as failing in sbuild
Chris Hofstaedtler [Thu, 29 Feb 2024 22:22:41 +0000 (23:22 +0100)]
tests: mark lsfd mkfds-socketpair as failing in sbuild

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-mark-lsfd-tests-failing-in-sbuild.patch

20 months agoUse sensible-pager
Chris Hofstaedtler [Thu, 14 Jul 2022 09:54:01 +0000 (09:54 +0000)]
Use sensible-pager

Closes: #1014368
Gbp-Pq: Topic debian
Gbp-Pq: Name sensible-pager.patch

20 months agoInstall lsfd into /usr/bin
Chris Hofstaedtler [Thu, 14 Apr 2022 11:47:20 +0000 (11:47 +0000)]
Install lsfd into /usr/bin

Gbp-Pq: Topic debian
Gbp-Pq: Name lsfd-usrbin.patch

20 months agohardlink tests: set known failed
Chris Hofstaedtler [Tue, 12 Apr 2022 20:35:57 +0000 (20:35 +0000)]
hardlink tests: set known failed

sha256 cannot be initialized on some archs / buildds.

Gbp-Pq: Topic debian
Gbp-Pq: Name hardlink-tests-known-failed.patch

20 months agoverbose-tests
Andreas Henriksson [Wed, 30 Jul 2014 12:28:17 +0000 (14:28 +0200)]
verbose-tests

Enable verbose tests and print content of failing tests output file.

Gbp-Pq: Topic debian
Gbp-Pq: Name verbose-tests.patch

20 months agoutil-linux: getopt(1) should point to where examples are on a Debian system
Matthew Vernon [Tue, 6 Nov 2018 11:49:21 +0000 (11:49 +0000)]
util-linux: getopt(1) should point to where examples are on a Debian system

Debian BTS #913049

Gbp-Pq: Topic debian
Gbp-Pq: Name man-getopt-examples.patch

20 months agoutil-linux (2.40.1-2) unstable; urgency=medium
Chris Hofstaedtler [Sun, 26 May 2024 13:52:22 +0000 (15:52 +0200)]
util-linux (2.40.1-2) unstable; urgency=medium

  * Apply upstream patches: fix atime remount, fix smartcols reduction stages,
    clear uuidd cache on fork

[dgit import unpatched util-linux 2.40.1-2]

20 months agoImport util-linux_2.40.1-2.debian.tar.xz
Chris Hofstaedtler [Sun, 26 May 2024 13:52:22 +0000 (15:52 +0200)]
Import util-linux_2.40.1-2.debian.tar.xz

[dgit import tarball util-linux 2.40.1-2 util-linux_2.40.1-2.debian.tar.xz]

20 months agoImport util-linux_2.40.1.orig.tar.xz
Chris Hofstaedtler [Tue, 14 May 2024 10:53:27 +0000 (12:53 +0200)]
Import util-linux_2.40.1.orig.tar.xz

[dgit import orig util-linux_2.40.1.orig.tar.xz]

20 months agoMerge util-linux (2.40.1-1) import into refs/heads/workingbranch
Chris Hofstaedtler [Tue, 14 May 2024 10:53:27 +0000 (12:53 +0200)]
Merge util-linux (2.40.1-1) import into refs/heads/workingbranch

20 months agofsck: warn if fsck.<type> not found and device is specified
Karel Zak [Thu, 8 Feb 2024 11:42:51 +0000 (12:42 +0100)]
fsck: warn if fsck.<type> not found and device is specified

The fsck(8) command prints an error for certain 'required'
filesystems, such as extN, if the corresponding fsck.<type> helper is
not found. However, for other filesystems, it silently ignores the
device. While this behavior is acceptable for the -A option, if a user
explicitly specifies the device on the command line, it is probably a
good idea to be more verbose and issue a warning that the device will
be ignored. The warning is enabled only for interactive mode (only one
device specified or -s).

Note that some filesystems do not have an fsck utility, so caution is
needed when issuing such warnings to prevent the generation of a large
number of unwanted entries in system logs, etc."

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Closes: #1062208
Gbp-Pq: Topic upstream
Gbp-Pq: Name fsck-warn-if-fsck.-type-not-found-and-device-is-specified.patch

20 months agolibmount/utils: add pidfs to pseudo fs list
Mike Yuan [Fri, 10 May 2024 17:11:28 +0000 (01:11 +0800)]
libmount/utils: add pidfs to pseudo fs list

(cherry picked from commit 62cf52f81d5baaba2cfe6dfe00aa4975ebd55d92)

Gbp-Pq: Topic upstream
Gbp-Pq: Name libmount-utils-add-pidfs-to-pseudo-fs-list.patch

20 months agoFix ul_path_read_buffer()
Daan De Meyer [Thu, 9 May 2024 10:32:31 +0000 (12:32 +0200)]
Fix ul_path_read_buffer()

The current implementation cuts off the last character of the buffer
if there is no trailing newline.

(cherry picked from commit 6273c12257973cbd3c59a710049ee8a8027bbbb1)

Gbp-Pq: Topic upstream
Gbp-Pq: Name Fix-ul_path_read_buffer.patch

20 months agoaudit-arch.h: add defines for m68k, sh
Chris Hofstaedtler [Tue, 9 Apr 2024 08:30:32 +0000 (10:30 +0200)]
audit-arch.h: add defines for m68k, sh

John Paul Adrian Glaubitz points out that libseccomp needs to release 2.6.0,
too.

Upstream commit 5ebf0edb0a0531cba801c7791543c610725bf944.

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
Gbp-Pq: Topic upstream
Gbp-Pq: Name audit-arch.h-add-defines-for-m68k-sh.patch

20 months agotests: mark fadvise/drop as known failing on buildds
Chris Hofstaedtler [Tue, 2 Apr 2024 19:52:47 +0000 (21:52 +0200)]
tests: mark fadvise/drop as known failing on buildds

buildds build on a tmpfs, but this is not visible inside the build environment.

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-mark-fadvise-drop-as-known-failing-on-buildds.patch

20 months agotests: mark lsfd mkfds-socketpair as failing in sbuild
Chris Hofstaedtler [Thu, 29 Feb 2024 22:22:41 +0000 (23:22 +0100)]
tests: mark lsfd mkfds-socketpair as failing in sbuild

Gbp-Pq: Topic debian
Gbp-Pq: Name tests-mark-lsfd-tests-failing-in-sbuild.patch

20 months agoUse sensible-pager
Chris Hofstaedtler [Thu, 14 Jul 2022 09:54:01 +0000 (09:54 +0000)]
Use sensible-pager

Closes: #1014368
Gbp-Pq: Topic debian
Gbp-Pq: Name sensible-pager.patch

20 months agoInstall lsfd into /usr/bin
Chris Hofstaedtler [Thu, 14 Apr 2022 11:47:20 +0000 (11:47 +0000)]
Install lsfd into /usr/bin

Gbp-Pq: Topic debian
Gbp-Pq: Name lsfd-usrbin.patch

20 months agohardlink tests: set known failed
Chris Hofstaedtler [Tue, 12 Apr 2022 20:35:57 +0000 (20:35 +0000)]
hardlink tests: set known failed

sha256 cannot be initialized on some archs / buildds.

Gbp-Pq: Topic debian
Gbp-Pq: Name hardlink-tests-known-failed.patch

20 months agoverbose-tests
Andreas Henriksson [Wed, 30 Jul 2014 12:28:17 +0000 (14:28 +0200)]
verbose-tests

Enable verbose tests and print content of failing tests output file.

Gbp-Pq: Topic debian
Gbp-Pq: Name verbose-tests.patch

20 months agoutil-linux: getopt(1) should point to where examples are on a Debian system
Matthew Vernon [Tue, 6 Nov 2018 11:49:21 +0000 (11:49 +0000)]
util-linux: getopt(1) should point to where examples are on a Debian system

Debian BTS #913049

Gbp-Pq: Topic debian
Gbp-Pq: Name man-getopt-examples.patch

20 months agoutil-linux (2.40.1-1) unstable; urgency=medium
Chris Hofstaedtler [Tue, 14 May 2024 10:53:27 +0000 (12:53 +0200)]
util-linux (2.40.1-1) unstable; urgency=medium

  * New upstream release.
  * Update Homepage: field.
  * Drop upstream-applied patches.
  * Apply new patches from upstream. (Closes: #1062208)

[dgit import unpatched util-linux 2.40.1-1]

20 months agoImport util-linux_2.40.1-1.debian.tar.xz
Chris Hofstaedtler [Tue, 14 May 2024 10:53:27 +0000 (12:53 +0200)]
Import util-linux_2.40.1-1.debian.tar.xz

[dgit import tarball util-linux 2.40.1-1 util-linux_2.40.1-1.debian.tar.xz]

21 months agoMerge util-linux (2.40-8) import into refs/heads/workingbranch
Chris Hofstaedtler [Sat, 27 Apr 2024 12:23:31 +0000 (14:23 +0200)]
Merge util-linux (2.40-8) import into refs/heads/workingbranch

21 months agolsns: fix netns use
Karel Zak [Mon, 22 Apr 2024 12:28:52 +0000 (14:28 +0200)]
lsns: fix netns use

 # ip netns add vpn
 # lsns -T -t net
 Segmentation fault (core dumped)

The function interpolate_missing_namespaces() reads data from /proc.
However, in the case of a persistent namespace, there is no procfs
entry for the namespace. Therefore, this function should ignore it.

Fixes: https://github.com/util-linux/util-linux/issues/2982
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 42880f54894c1d7fd113552ff8474566a2595a0d)

Gbp-Pq: Topic upstream
Gbp-Pq: Name lsns-fix-netns-use.patch

21 months agolibmount: fix comment typo for mnt_fs_get_comment()
Tianjia Zhang [Mon, 22 Apr 2024 06:01:25 +0000 (14:01 +0800)]
libmount: fix comment typo for mnt_fs_get_comment()

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
(cherry picked from commit c630dbc38f7cd1f838e65e2c43d8375bce1ec20f)

Gbp-Pq: Topic upstream
Gbp-Pq: Name libmount-fix-comment-typo-for-mnt_fs_get_comment.patch

21 months agolibmount: Fix access check for utab in context
Karel Zak [Mon, 22 Apr 2024 11:09:04 +0000 (13:09 +0200)]
libmount: Fix access check for utab in context

The function mnt_has_regular_utab() properly detects that the utab is
not writable, but this is ignored by the high-level context API. As a
result, the library later attempts to update the file and ends up with
a warning in mount(8):

 $ mkdir sys
 $ unshare --map-root-user --mount
 $ mount --rbind /sys sys
 $ umount --lazy sys; echo $?
 umount: /home/user/sys: filesystem was unmounted, but failed to update userspace mount table.
 16

In this case, the utab should be ignored.

Fixes: https://github.com/util-linux/util-linux/issues/2981
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 97f7bfc0fdf74b6a6e220ba9d2f620386e660b29)

Gbp-Pq: Topic upstream
Gbp-Pq: Name libmount-Fix-access-check-for-utab-in-context.patch

21 months agolsblk: simplify SOURCES code
Karel Zak [Mon, 22 Apr 2024 09:51:56 +0000 (11:51 +0200)]
lsblk: simplify SOURCES code

This complicated implementation originated from an early version of
zero-separated items for libsmartcols. It is no longer necessary.

References: https://github.com/util-linux/util-linux/pull/2983
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit af4c7dac191abadc33aae75916583c890cd2ebc3)

Gbp-Pq: Topic upstream
Gbp-Pq: Name lsblk-simplify-SOURCES-code.patch

21 months agofindmnt: always zero-terminate SOURCES data
Thomas Weißschuh [Sun, 21 Apr 2024 18:00:31 +0000 (20:00 +0200)]
findmnt: always zero-terminate SOURCES data

libsmartcols expects it's data fields to be zero terminated.
See the call to strlen() in scols_column_greatest_wrap().
ul_buffer however does not guarantee that termination,
ul_buffer_append_strings() discard the zero-termination.

Always zero-terminate in get_data_col_sources() and drop the now
unnecessary variable "i".

Closes: https://github.com/util-linux/util-linux/issues/2980
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 6594679e9af805075c282da35b1b2a8d767e403b)

Gbp-Pq: Topic upstream
Gbp-Pq: Name findmnt-always-zero-terminate-SOURCES-data.patch

21 months agoagetty: Don't override TERM passed by the user
Daan De Meyer [Fri, 19 Apr 2024 18:07:47 +0000 (20:07 +0200)]
agetty: Don't override TERM passed by the user

Before 4869b259d68f65ea88df625ce8df9c0177d55a01, any TERM passed
on the agetty command line would be used instead of the default TERM.
After 4869b259d68f65ea88df625ce8df9c0177d55a01, the default TERM is
used unconditionally.

Fix the regression by checking if the user passed a custom TERM.

Fixes: 4869b259d68f65ea88df625ce8df9c0177d55a01
(cherry picked from commit af354e92111769d57e43eb4f1825c0d99c894ddb)

Gbp-Pq: Topic upstream
Gbp-Pq: Name agetty-Don-t-override-TERM-passed-by-the-user.patch

21 months agolibsmartcols: reset wrap after calculation
Karel Zak [Tue, 16 Apr 2024 08:49:31 +0000 (10:49 +0200)]
libsmartcols: reset wrap after calculation

Fixes: https://github.com/util-linux/util-linux/issues/2956
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 62f64717ec134b10c5a670403c2d8c43b608e671)

Gbp-Pq: Topic upstream
Gbp-Pq: Name libsmartcols-reset-wrap-after-calculation.patch

21 months agolslocks: remove a unused local variable
Masatake YAMATO [Fri, 12 Apr 2024 19:13:03 +0000 (04:13 +0900)]
lslocks: remove a unused local variable

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
(cherry picked from commit c8c85e8e54aa201766f2420e2a7c86ccfa8d5df0)

Gbp-Pq: Topic upstream
Gbp-Pq: Name lslocks-remove-a-unused-local-variable.patch